#!/bin/sh

#spring-gen launch script

# Validate the JDK installation
if [ -z "$JAVA_HOME" ]; then
    echo "The JAVA_HOME environment variable is not set"
    echo "Please point it to a JDK installation"
    exit 1
elif [ ! -x "$JAVA_HOME/bin/javac" ]; then
    echo "The JAVA_HOME environment variable should point to a JDK, not a JRE"
    exit 1
fi

./ant -buildfile stripes-crud.xml "$@"